﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    [Serializable]
    public class TeacherEvalRemark
    {
        private int _rID;
        private int _record;
        private int _teacherID;
        private string _data;

        public TeacherEvalRemark()
        {
        }

        public TeacherEvalRemark(int rID, int record, int teacherID, string data)
        {
            _rID = rID;
            _record = record;
            _teacherID = teacherID;
            _data = data;
        }

        public int RID
        {
            get { return _rID; }
            set { _rID = value; }
        }

        public int RecordID
        {
            get { return _record; }
            set { _record = value; }
        }

        public int TeacherID
        {
            get { return _teacherID; }
            set { _teacherID = value; }
        }

        public string Data
        {
            get { return _data; }
            set { _data = value; }
        }

        public bool Equals(TeacherEvalRemark other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return other._rID == _rID;
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof(TeacherEvalRemark)) return false;
            return Equals((TeacherEvalRemark)obj);
        }

        public override int GetHashCode()
        {
            return _rID;
        }
    }
}
